

Page({

  /**
   * 页面的初始数据
   */
  data: {

    navH: 0,
     list:[
       {
         id:1,
         pic:'https://jiagaojie.oss-cn-beijing.aliyuncs.com/image/xyjs.png',
       },
       {
         id:2,
         pic:app.globalData.interface+'/jiarongfile/image/shipuhzuye.png',
       },
       {
         id:3,
         pic:'https://jiagaojie.oss-cn-beijing.aliyuncs.com/image/szjs.png',
       },
       {
         id:4,
         pic:'https://jiagaojie.oss-cn-beijing.aliyuncs.com/image/xytz.png',
       },
       {
         id:5,
         pic:'https://jiagaojie.oss-cn-beijing.aliyuncs.com/image/xyfc.png',
       },
       {
         id:6,
         pic:'https://jiagaojie.oss-cn-beijing.aliyuncs.com/image/xsxx.png',
       },
       {
         id:7,
         pic:'https://jiagaojie.oss-cn-beijing.aliyuncs.com/image/wjdc.png',
       },
       {
         id:8,
         pic:'https://jiagaojie.oss-cn-beijing.aliyuncs.com/image/xsqj.png',
       },
       {
         id:9,
         pic:'',
       },
       {
         id:10,
         pic:'https://jiagaojie.oss-cn-beijing.aliyuncs.com/image/jzly.png',
       },
       {
         id:11,
         pic:app.globalData.interface+'/jiarongfile/image/kcbzhuye.png',
       },
       {
         id:12,
         pic:'',
       },
     ]

  },
  xyjs(e){

    console.log(e);
    // console.log(e.currentTarget.dataset.item);
    e.currentTarget.dataset.item.pic
     if( e.currentTarget.dataset.item.id == 2 ||  e.currentTarget.dataset.item.id == 9 || e.currentTarget.dataset.item.id == 11  ||   e.currentTarget.dataset.item.id == 12){
      wx.showToast({
        title: '待开发',
        icon: 'error',
        duration: 2000
      })
     } else{
    wx.navigateTo({
        url: `/pages/bgpic/bgpic?urlpic=${e.currentTarget.dataset.item.pic}`,
      })
     }

  
  },
  tiaozhuan(){
    wx.navigateTo({
      url: `/pages/fond/fond`,
    })
  },
  wode(){
    wx.navigateTo({
      url: `/pages/my/my`,
    })
  },

  jrsp(){
    wx.navigateTo({
      url: 'url',
    })
  },
  szjs(){
    wx.navigateTo({
      url: 'url',
    })
  },
  xytc(){
    wx.navigateTo({
      url: 'url',
    })
  },
  xsfc(){
    wx.navigateTo({
      url: 'url',
    })
  },
  xsxx(){
    wx.navigateTo({
      url: 'url',
    })
  },
  wjdc(){
    wx.navigateTo({
      url: 'url',
    })
  },
  xsqj(){
    wx.navigateTo({
      url: 'url',
    })
  },
  xscj(){
    wx.navigateTo({
      url: 'url',
    })
  },
  jzly(){
    wx.navigateTo({
      url: 'url',
    })
  },
  xskb(){
    wx.navigateTo({
      url: 'url',
    })
  },
  jfzx(){
    wx.navigateTo({
      url: 'url',
    })
  },
  



  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
 


  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})


